package system;

import book.Book;
import book.BookList;

public class ShowOperation implements Operation{
    @Override
    public void work(BookList bookList) {
        int currentSize = bookList.getUsedSize();
        if(currentSize == 0){
            System.out.println("书架里没有书");
            return ;
        }
        for(int i = 0 ;i < currentSize ; i ++){
            System.out.println(bookList.getBook(i));
        }
    }
}
